package com.leyou.item.mapper;

import com.leyou.item.pojo.Brand;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: wangzibeng
 * Date: 2019/4/28 0028
 * Time: 16:51
 */

@Repository
public interface BrandMapper extends Mapper<Brand> {
    /**
     *
     * 商品分类和品牌的中间表
     * @param bid
     * @param cid
     * @return
     */
    @Insert("insert into tb_category_brand (category_id,brand_id) values(#{cid},#{bid})")
    int insertCategoryBrand(@Param("bid") Long bid, @Param("cid") Long cid);

}
